<?php

/**
 * Description of IteratorDefiner
 *
 * @author pahhan
 */
class Model_Definer_IteratorDefiner extends Model_Definer
{
    public function __construct(Model_DataLoader $loader, array $params = array())
    {
        if( !isset($params['step']) ) $params['step'] = 1;
        parent::__construct($loader, $params);
    }


    public function getId()
    {
        return $this->getParseInfo()->getLastExternalId() + $this->getParam('step');
    }

    public function getUrl()
    {
        return $this->getParseInfo()->getCompleteUrl($this->getId());
    }
}

